module.exports = app => {
    var mongoose = app.mongoose;
    var Schema = mongoose.Schema;
    var GisSchema = new Schema(
        {
            tagId: {
                type: String
            },
            devId: {
                //设备号
                type: String
            },
            location: {
                type: [
                    {
                        type: Number
                    }
                ]
            },
            address: {
                type: String
            },
            inOut: {
                //"00 离开基站"1 进入基站
                type: String
            },
            tsIn: {
                //"1585822910"
                type: String
            },
            tsOut: {
                type: String
            }
        },
        {
            collection: 'Gis'
        }
    );
    return mongoose.model('gis', GisSchema);
};
